Neil Roberts [Thu, 9 Feb 2012 03:53:43 +0000 (04:53 +0100)]
bitmask: Don't allocate memory for small bitmasks
Code taken more or less verbatim from CoglBitmask.
Benjamin Otte [Thu, 9 Feb 2012 00:44:59 +0000 (01:44 +0100)]
bitmask: Split bitmask code into two
This does nothing but turn all GtkBitmask functions into static inline
functions that call the gtk_allocated_bitmask_*() equivalent.
The implementation of the static functions has also been put into a
private header, to not scare people who want to see how things are
implemented.
Alexander Larsson [Thu, 9 Feb 2012 00:15:20 +0000 (01:15 +0100)]
bitmask: Allocate GtkBitmap data inline, not using GArray
This alone saves ~240k of GtkBitmap data after just starting up
nautilus.
Benjamin Otte [Wed, 8 Feb 2012 18:19:59 +0000 (19:19 +0100)]
bitmask: Make setters return a new value
(Actually, it's not a real 'new' value yet, but will be soon.
This is the first step to make bitmasks immutable.
Benjamin Otte [Thu, 1 Mar 2012 14:05:00 +0000 (15:05 +0100)]
testgtk: Fix compiler warnings
Alexander Larsson [Thu, 1 Mar 2012 13:14:33 +0000 (14:14 +0100)]
Fix up rendering of non-double-buffered overlays
My previous fix for this broke the progress bar in epiphany. This fix
makes it work again, and keeps the gimp bug fixed.
Basically, whenever we do a non-double-buffered rendering we have to
flush the entire window as it might be drawn outside the double
buffering machinery.
Benjamin Otte [Thu, 1 Mar 2012 12:46:11 +0000 (13:46 +0100)]
css: Fix variable
And you'd think I'd test my code...
Krishnababu Krothapalli [Thu, 1 Mar 2012 09:22:58 +0000 (14:52 +0530)]
Updated Telugu Translations
Benjamin Otte [Thu, 1 Mar 2012 05:40:15 +0000 (06:40 +0100)]
cssprovider: Redo styles as an array
Saves even more memory and avoids an extra copy during assigning.
Benjamin Otte [Thu, 1 Mar 2012 04:28:41 +0000 (05:28 +0100)]
css: Fix fallout
.. from carelessly merging
85b1b9b77816198040d9437ea2e1231c47e41e68
Benjamin Otte [Thu, 1 Mar 2012 04:16:04 +0000 (05:16 +0100)]
x11: Mark unused variables as such
We cannot get rid of the variables because they are assigned in a macro
inside Xlib. And this causes a warning in the xlib from Fedora 17
onwards.
Benjamin Otte [Thu, 1 Mar 2012 04:32:09 +0000 (05:32 +0100)]
gtk-demo: Fix gcc warnings
Alexander Larsson [Wed, 15 Feb 2012 16:06:30 +0000 (17:06 +0100)]
Don't use hashtables for storing css rule properties
This saves a lot of memory
Cosimo Cecchi [Mon, 6 Feb 2012 16:26:57 +0000 (11:26 -0500)]
tests: add a test for GtkOverlay position style classes
https://bugzilla.gnome.org/show_bug.cgi?id=669342
Cosimo Cecchi [Fri, 3 Feb 2012 20:33:30 +0000 (15:33 -0500)]
overlay: add left/right/top/bottom style classes to overlay children
When we're allocating children of GtkOverlay, compare their allocation
with the overlay one, and set left/right/top/bottom style classes if the
overlaid widget touches one or more of the overlay edges.
https://bugzilla.gnome.org/show_bug.cgi?id=669342
Cosimo Cecchi [Wed, 29 Feb 2012 17:21:59 +0000 (12:21 -0500)]
overlay: do not to set uninitialized values in the main allocation
gtk_widget_translate_coordinates() can fail in case the widget is not
realized or there's no common ancestor. Don't use the x/y values
returned by that method in that case, since their value is undefined.
Cosimo Cecchi [Wed, 29 Feb 2012 17:20:25 +0000 (12:20 -0500)]
overlay: factor out gtk_overlay_get_main_widget_allocation
This will be used later in a subsequent commit.
Cosimo Cecchi [Fri, 3 Feb 2012 19:03:52 +0000 (14:03 -0500)]
scrolledwindow: draw a box in the junction between the two scrollbars
If there's a junction between the two scrollbars (i.e. they're both
visible), draw a background with a style class there, so the theme can
style it.
https://bugzilla.gnome.org/show_bug.cgi?id=669335
Cosimo Cecchi [Fri, 3 Feb 2012 19:03:28 +0000 (14:03 -0500)]
stylecontext: add a "scrollbars-junction" style class
It will be used in the following commit.
https://bugzilla.gnome.org/show_bug.cgi?id=669335
Daniel Mustieles [Wed, 29 Feb 2012 13:11:30 +0000 (14:11 +0100)]
Updated Spanish translation
Jonh Wendell [Wed, 29 Feb 2012 12:32:51 +0000 (09:32 -0300)]
Updated Brazilian Portuguese translation
Rob Bradford [Mon, 27 Feb 2012 12:35:25 +0000 (12:35 +0000)]
menu: Deactivate the menu if the GdkWindow is withdrawn
If the display server or GDK hides the window - fire the "deactivate" signal
to ensure that the internal state is consistent.
This patch also ensures that the "deactivate" signal will not be fired for a
menu that is not active.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=670881
Daniel Nylander [Wed, 29 Feb 2012 07:21:38 +0000 (08:21 +0100)]
Updated Swedish translation
Daniel Nylander [Wed, 29 Feb 2012 07:06:50 +0000 (08:06 +0100)]
Updated Swedish translation
Jonh Wendell [Tue, 28 Feb 2012 20:45:35 +0000 (17:45 -0300)]
Updated Brazilian Portuguese translation
Cosimo Cecchi [Tue, 28 Feb 2012 20:04:31 +0000 (15:04 -0500)]
cellrendereraccel: override get_preferred_width, not get_size
Since GtkCellRendererText moved to WFH requests, our get_size
implementation is ignored. We should override get_preferred_width
instead. This fixes the accel renderer being clipped to a wrong size
when trying to edit its shortcut.
Cosimo Cecchi [Tue, 28 Feb 2012 20:03:02 +0000 (15:03 -0500)]
cellrendereraccel: override background on the event box, not the label
Since that's what renders the background. Otherwise the event box will
get the regular window background and will look bad.
Tommi Vainikainen [Tue, 28 Feb 2012 05:39:37 +0000 (07:39 +0200)]
Fix typo in Finnish translation
Rob Bradford [Mon, 27 Feb 2012 14:30:58 +0000 (14:30 +0000)]
wayland: Categorise menus, popups and combo boxes as Wayland popup windows
Once we've made them popup windows we must also implement the popup_done event
handler on the shell surface listener. The best we can currently do is to hide
the window. This will then signal up to GTK which could then deactivate the
appropriate menu (see https://bugzilla.gnome.org/show_bug.cgi?id=670881)
Rob Bradford [Mon, 27 Feb 2012 14:06:22 +0000 (14:06 +0000)]
wayland: Store the device that does a grab for a window on the window
This allows us to get the device if we need to make the window a popup. This
relies on the side effect that GTK calls into GDK to take a grab before the
popup window is shown.
Rob Bradford [Mon, 27 Feb 2012 12:55:25 +0000 (12:55 +0000)]
wayland: Call wl_shell_surface_set_{popup,transient,toplevel} before attach
The requests only have an effect if you call them before the buffer is
attached to the surface.
Javier Jardón [Mon, 27 Feb 2012 13:01:10 +0000 (13:01 +0000)]
Change FSF Address
Javier Jardón [Mon, 27 Feb 2012 11:09:03 +0000 (11:09 +0000)]
gtk/gtkapplication.c: Do not use gtk_dialog_run()
Javier Jardón [Mon, 27 Feb 2012 11:07:08 +0000 (11:07 +0000)]
demos/gtk-demo/infobar.c: Do not use gtk_dialog_run()
Javier Jardón [Mon, 27 Feb 2012 10:59:41 +0000 (10:59 +0000)]
demos/gtk-demo/colorsel.c: Do not use gtk_dialog_run()
Paolo Borelli [Mon, 27 Feb 2012 16:35:57 +0000 (17:35 +0100)]
Add a deprecation mark to draw_insertion_cursor
This function has been replaced with gtk_render_insertion_cursor, but we
forgot to mark it as deprecated.
Cosimo Cecchi [Mon, 27 Feb 2012 16:45:12 +0000 (11:45 -0500)]
gdk: don't install gdkversionmacros.h twice
Since it's generated, we install the header by putting it into
gdkinclude_HEADERS, so it's wrong to put it again into
gdk_public_h_sources.
This fixes the build.
Daniel Mustieles [Mon, 27 Feb 2012 16:10:55 +0000 (17:10 +0100)]
Updated Spanish translation
Matthias Clasen [Mon, 27 Feb 2012 12:56:29 +0000 (07:56 -0500)]
Add some documentation around deprecations
Matthias Clasen [Mon, 27 Feb 2012 12:10:59 +0000 (07:10 -0500)]
gtk: Use versioned deprecations
This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers
by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same
time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions
in 3.2 and 3.4.
Matthias Clasen [Mon, 27 Feb 2012 12:09:29 +0000 (07:09 -0500)]
gdk: correct a 'Since' note in the docs
gdk_keymap_get_modifier_state was only introduced in 3.4, not 3.2.
Matthias Clasen [Mon, 27 Feb 2012 12:07:48 +0000 (07:07 -0500)]
gdk: Use versioned deprecations
This patch changes all uses of GDK_DEPRECATED(_FOR) in gdk headers
by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same
time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions
in 3.2 and 3.4.
Matthias Clasen [Mon, 27 Feb 2012 12:04:30 +0000 (07:04 -0500)]
Add versioned deprecation macros
These macros follow the recent changes in GLibs deprecation
setup. We now annotate deprecated functions with the version
they were deprecated in, and you can define the macro
GDK_VERSION_MIN_REQUIRED to cut off deprecation warnings for
'recent' deprecations.
At the same time, we introduce version annotations for new API
and allow you to avoid 'recent' API additions by defining
GDK_VERSION_MAX_ALLOWED.
Baurzhan Muftakhidinov [Mon, 27 Feb 2012 08:18:51 +0000 (14:18 +0600)]
[l10n] Updated Kazakh translation
Matthias Clasen [Mon, 27 Feb 2012 01:48:34 +0000 (20:48 -0500)]
Correct Since: tag for gtk-application-prefer-dark-theme
This setting was available since 2.90.x, so give it a 3.0 tag.
https://bugzilla.gnome.org/show_bug.cgi?id=670832
A S Alam [Sun, 26 Feb 2012 10:23:07 +0000 (15:53 +0530)]
update Punjabi Translation
A S Alam [Sun, 26 Feb 2012 10:20:48 +0000 (15:50 +0530)]
update Punjabi Translation
Kasia Bondarava [Sun, 26 Feb 2012 09:51:50 +0000 (12:51 +0300)]
Updated Belarusian translation.
Arash Mousavi [Fri, 24 Feb 2012 18:22:41 +0000 (21:52 +0330)]
Updated Persian Translation
Piotr Drąg [Fri, 24 Feb 2012 18:26:18 +0000 (19:26 +0100)]
Updated POTFILES.skip
Michael Natterer [Fri, 24 Feb 2012 15:44:44 +0000 (16:44 +0100)]
gdk: pull more precondition checks into the generic gdkscreen.c
Paolo Borelli [Tue, 21 Feb 2012 22:42:39 +0000 (23:42 +0100)]
Set infobar css classes permanently
The message-type css classes must be in the widget context all the time,
not only when drawing, otherwise they are not propagated to the
children, for instance a label in the InfoBar must inherit the
color. Add a corresponding reftest.
https://bugzilla.gnome.org/show_bug.cgi?id=670555
Paolo Borelli [Thu, 23 Feb 2012 23:16:33 +0000 (00:16 +0100)]
Init the InfoBar message_type to GTK_MESSAGE_OTHER
In this way the the code executed when the message_type property is set
to its default value (which is 0) gets actually run.
Carlos Garnacho [Thu, 12 Jan 2012 02:05:54 +0000 (03:05 +0100)]
textview: Set background on the widget's window
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.
Carlos Garnacho [Thu, 12 Jan 2012 02:02:55 +0000 (03:02 +0100)]
iconview: Set background on the widget's window
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.
Carlos Garnacho [Thu, 12 Jan 2012 02:00:45 +0000 (03:00 +0100)]
treeview: Set background on the widget's window
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.
Matthias Clasen [Fri, 24 Feb 2012 03:20:07 +0000 (22:20 -0500)]
Clean up whitespace in _gdk_window_got_event
At the same time, fix an uninitialized warning.
Carlos Garnacho [Tue, 6 Dec 2011 19:29:22 +0000 (20:29 +0100)]
gdk: Ensure that GdkPointerWindowInfo is only generated for pointers
Carlos Garnacho [Tue, 6 Dec 2011 19:20:39 +0000 (20:20 +0100)]
gtk: Only set widget under device on non-virtual crossing events
_gtk_widget_set_device_window() is suppose to make accounting of
the topmost widget under the device at each time, so avoid setting
it on virtual crossing events as the device is already in another
window.
Matthias Clasen [Fri, 24 Feb 2012 00:59:52 +0000 (19:59 -0500)]
Fix an uninitialized variable warning
Matthias Clasen [Thu, 23 Feb 2012 22:52:05 +0000 (17:52 -0500)]
GtkTimeline: un-doc-commentify
This is all private api, no need to confuse gtk-doc with
doc comments for this.
Carlos Garcia Campos [Wed, 9 Feb 2011 07:53:03 +0000 (08:53 +0100)]
timeline: Add _gtk_timeline_get_elapsed_time()
To get the time in milliseconds since the last frame
Carlos Garnacho [Wed, 4 Jan 2012 23:27:57 +0000 (00:27 +0100)]
range: Don't perform a GTK+ grab
The implicit grab on priv->event_window already warrants that this
widget is the only one getting events while the button is pressed,
so avoid the extra GTK+ grab here.
Carlos Garnacho [Sun, 11 Dec 2011 17:25:36 +0000 (18:25 +0100)]
textview: Also cancel DnD on ::grab-notify
If a drag operation is about to start when the drag
device is grabbed somewhere else, unset drag start x/y,
otherwise the drag will start anyway.
Carlos Garnacho [Thu, 8 Dec 2011 19:21:13 +0000 (20:21 +0100)]
xi2: Get the effective group state by ORing the XIGroupState values
Carlos Garnacho [Sat, 3 Dec 2011 14:04:19 +0000 (15:04 +0100)]
gdk: Keep track of the last slave device used
This last slave device (stored per master) is used to fill
in the missing slave device in synthesized crossing events
that are not directly caused by a device event (ie due to
configure events or grabs).
Carlos Garnacho [Tue, 1 Nov 2011 01:54:03 +0000 (02:54 +0100)]
entry: Handle ::grab-notify
Store the device, and unset private fields whenever the device
is shadowed by another GTK+ grab, so popping up menus while
selecting (i.e. press-and-hold) doesn't leave the entry in a
confused state.
Michael Natterer [Thu, 23 Feb 2012 14:33:12 +0000 (15:33 +0100)]
quartz: implement GdkScreen::get_monitor_workarea()
Alexander Larsson [Thu, 23 Feb 2012 14:16:57 +0000 (15:16 +0100)]
Raleigh: Fix entry selection colors
Alexander Larsson [Thu, 23 Feb 2012 13:48:59 +0000 (14:48 +0100)]
Fix some details in Raleigh look
* Restores the old padding
* Prelight on spin buttons
* Don't have a generic prelight background selector, as that got
picked up by things like images that should have a transparent bg.
Michael Natterer [Thu, 23 Feb 2012 12:27:09 +0000 (13:27 +0100)]
quartz: make function keys work (again?)
The F keys have no unicode mapping, and UCKeyTranslate() returns
a bogus 0x10 as mapping to unicode. Instead of checking for this
random and undocumented return value, simply assign all function
keys explicitly. This patch also splits the ill-named "known_keys"
array into "modifier_keys" and "function_keys" which is much
more obvious.
(cherry picked from commit
55f9e5cbaf9c5f6761d7bce7a1672bc1552e2f07)
Javier Jardón [Wed, 22 Feb 2012 17:05:43 +0000 (17:05 +0000)]
docs: GtkApplication "quit" signal is gone now
Rob Bradford [Thu, 23 Feb 2012 11:45:49 +0000 (11:45 +0000)]
window: Fix typo in documentation for gtk_window_get_position
Daniel Mustieles [Thu, 23 Feb 2012 11:40:22 +0000 (12:40 +0100)]
Updated Spanish translation
Chun-wei Fan [Tue, 21 Feb 2012 04:43:57 +0000 (12:43 +0800)]
Bug 670499-gtkthemingengine.c: Include fallback-c89.c
This is due to the use of round and nearbyint() function, which are C99 functions...
Cosimo Cecchi [Tue, 21 Feb 2012 17:13:58 +0000 (18:13 +0100)]
color-swatch: set/unset prelight state flag on enter/leave events
Allows themes to set a different style on prelight.
Michael Natterer [Tue, 21 Feb 2012 16:32:37 +0000 (17:32 +0100)]
x11: s/_/-/ in signal name "window-manager-changed"
Michael Natterer [Tue, 21 Feb 2012 16:19:35 +0000 (17:19 +0100)]
GdkScreen: fix precondition checks in the public API
Move g_return_if_fail() stuff from the backends to the public
functions in gdkscreen.c itself, and some fixes for ugly formatting in
the various gdkscreen-backend.c files.
Cosimo Cecchi [Tue, 21 Feb 2012 11:25:06 +0000 (12:25 +0100)]
Revert "Remove the broken test for now"
Passes correctly again now.
This reverts commit
addff95c97aba96e9dc47a7788618c5eace6b5ba.
Cosimo Cecchi [Tue, 21 Feb 2012 11:14:13 +0000 (12:14 +0100)]
Revert "Disable broken entry progress test"
Passes correctly again now.
This reverts commit
39e51072b4d3eff103d7ec31e03c13a2a6f64b3a.
Cosimo Cecchi [Tue, 21 Feb 2012 11:07:36 +0000 (12:07 +0100)]
entry: fix progressbar area size for interior-focus = FALSE
No need to subtract focus line width again, since the progressbar is
rendered starting at (0, 0).
This also fixes the entry-progressbar-coloring reftest.
Fran Diéguez [Tue, 21 Feb 2012 11:08:13 +0000 (12:08 +0100)]
Updated Galician translations
Sebastian Keller [Mon, 20 Feb 2012 21:44:49 +0000 (22:44 +0100)]
Bug 650693 - Drawing errors in column headers when adding new columns
Reset style on visible headers, not on invisible ones
Chun-wei Fan [Tue, 21 Feb 2012 10:03:04 +0000 (18:03 +0800)]
Update Visual C++ property sheets
The file "installation" part needed a long-overdue update, especially
as some headers were simply moved into gtk/deprecated and some new headers
were introduced, and a new .gschema.xml file needed to be processed.
Matthias Clasen [Tue, 21 Feb 2012 09:45:07 +0000 (10:45 +0100)]
Bump version
Matthias Clasen [Tue, 21 Feb 2012 08:33:12 +0000 (09:33 +0100)]
Remove the broken test for now
It can come back after it has been repaired.
Мирослав Николић [Tue, 21 Feb 2012 07:38:29 +0000 (08:38 +0100)]
Updated Serbian translation
Мирослав Николић [Tue, 21 Feb 2012 07:32:34 +0000 (08:32 +0100)]
Updated Serbian translation
Chun-wei Fan [Tue, 21 Feb 2012 04:34:18 +0000 (12:34 +0800)]
Update config.h.win32(.in)
Make it more like the current config.h.in template.
Chun-wei Fan [Tue, 21 Feb 2012 04:07:51 +0000 (12:07 +0800)]
Update gtk3-demo Visual C++ projects
Make up for the missed source file application.c
Matthias Clasen [Tue, 21 Feb 2012 01:00:54 +0000 (02:00 +0100)]
Bump glib dep
Matthias Clasen [Tue, 21 Feb 2012 00:51:38 +0000 (01:51 +0100)]
More updates
Matthias Clasen [Tue, 21 Feb 2012 00:47:53 +0000 (01:47 +0100)]
Update expected output
Matthias Clasen [Tue, 21 Feb 2012 00:47:34 +0000 (01:47 +0100)]
Updates
Matthias Clasen [Tue, 21 Feb 2012 00:47:04 +0000 (01:47 +0100)]
Disable broken entry progress test
Cosimo says this needs to be done differently.
Matthias Clasen [Tue, 21 Feb 2012 00:46:40 +0000 (01:46 +0100)]
Symbol exporting fixes
Matthias Clasen [Mon, 20 Feb 2012 23:31:33 +0000 (00:31 +0100)]
Remove an unnecessary include
Matthias Clasen [Mon, 20 Feb 2012 23:30:44 +0000 (00:30 +0100)]
Add a way to get the current modifier state
Xkb makes this available to us, and it is useful if you want
to do easter eggs that are triggered by Alt.
Ryan Lortie [Tue, 21 Feb 2012 00:15:50 +0000 (01:15 +0100)]
bloatpad: adjust to G(tk)Application 'quit' change
https://bugzilla.gnome.org/show_bug.cgi?id=670485
Ryan Lortie [Mon, 20 Feb 2012 21:22:10 +0000 (22:22 +0100)]
GtkApplication: simplify session quit handling
Instead of firing a 'quit' signal and expecting the application to do
something that will cause it to quit, just call the new
g_application_quit() API for ourselves.
https://bugzilla.gnome.org/show_bug.cgi?id=670485